package com.songcha.module_task.api


import com.songcha.library_business.bean.book.BookDetailNetBean
import com.songcha.library_network.bean.BaseBean
import com.songcha.module_bookdetail.bean.BookCommentListBean
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface BookDetailApiService {

    @GET("/api/getBookInfo/{bookId}")
    fun getBookDetail(@Path("bookId") bookId:String):Observable<BookDetailNetBean>

    @POST("/api/token/addBookComment")
    fun addBookComment(@Body body:RequestBody):Observable<BaseBean>

    @GET("/api/getBookComment/{bookId}/{current}/{pageSize}")
    fun getBookCommentList(@Path("bookId") bookId:Int,@Path("current") current:Int,@Path("pageSize") pageSize:Int):Observable<BookCommentListBean>

    @POST("/api/token/addCommentReport")
    fun reportComment(@Body body:RequestBody):Observable<BaseBean>
}